<!--
 * @Description: Document
 * @Author: rendc
 * @Date: 2021-09-06 09:32:30
 * @LastEditors: rendc
 * @LastEditTime: 2021-09-06 10:13:46
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Documentl类型</title>
</head>

<body>
  <div class="app">
    div.app
  </div>
  <div class="app app2">
    div.app2
  </div>
  <div class="app">
    div.app3
  </div>
  <a>没有href的</a>
  <a href="http://baidu.com">baidu</a>
  <a href="http://baidu.com">baidu</a>
  <li>123</li>
  <li>123</li>
  <img src="../../../../../test.jpg" alt="">
  <img src="../../../../../test.jpg" alt="">
  <img src="" alt="">
  <div name="myDiv">
    name-div
  </div>
  <!-- <div id="app">
    div#app1
  </div>
  <div id="app">
    div#app2
  </div> -->
  <form action="get" name="app" id="app">
  </form>
</body>
<script>
  // var classApp = document.getElementsByClassName("app app2");
  // console.log(classApp[0]);
  // var idApp = document.getElementById("app");
  // console.log(idApp);
  // var myDivs = document.getElementsByTagName("div");
  // console.log(myDivs);
  // var li = document.getElementsByTagName("li");
  // console.log(li);
  // var myNameDiv = document.getElementsByName("myDiv");
  // console.log(myNameDiv);
  console.log(document.body);
  console.log(document.title);
  // console.log(document.links);
  // console.log(document.images);
  console.log(document.forms);
</script>

</html>